package com.example.drainage.ui.realmdao;

import java.util.UUID;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * author : yanghaozhang
 * date : 2022/8/3 16:21
 * description :
 */
public class RealmDaoObj extends RealmObject {

    @PrimaryKey
    private String id;
    private String daoString;
    private int daoInt;
    private float daoFloat;
    private double daoDouble;
    private RealmDaoObj child;

    public RealmDaoObj() {
        id = UUID.randomUUID().toString();
    }

    public RealmDaoObj(String daoString, int daoInt, float daoFloat, double daoDouble, RealmDaoObj child) {
        this();
        this.daoString = daoString;
        this.daoInt = daoInt;
        this.daoFloat = daoFloat;
        this.daoDouble = daoDouble;
        this.child = child;
    }

    @Override
    public String toString() {
        return "RealmDaoObj{" +
                "id='" + id + '\'' +
                ", daoString='" + daoString + '\'' +
                ", daoInt=" + daoInt +
                ", daoFloat=" + daoFloat +
                ", daoDouble=" + daoDouble +
                ", child=" + child +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDaoString() {
        return daoString;
    }

    public void setDaoString(String daoString) {
        this.daoString = daoString;
    }

    public int getDaoInt() {
        return daoInt;
    }

    public void setDaoInt(int daoInt) {
        this.daoInt = daoInt;
    }

    public float getDaoFloat() {
        return daoFloat;
    }

    public void setDaoFloat(float daoFloat) {
        this.daoFloat = daoFloat;
    }

    public double getDaoDouble() {
        return daoDouble;
    }

    public void setDaoDouble(double daoDouble) {
        this.daoDouble = daoDouble;
    }

    public RealmDaoObj getChild() {
        return child;
    }

    public void setChild(RealmDaoObj child) {
        this.child = child;
    }
}
